package ${entity.getSiblingPackage("service")};

import wo.common.entity.WoPage;
import ${entity.getSiblingPackage("dto")}.${entity.entityName}Dto;

/**
 * PO实体${entity.entityName}对应的Service接口.
 * @author cailei
 */
public interface ${entity.entityName}Service {

	#set ($idType = ${entity.keys.get(0).fieldType.name})
	
	/**
	 * 获取分页数据
	 * @param searchContent
	 * @param selectedIds
	 * @param start 分页开始的行索引，0开始
	 * @param limit 分页最大行数
	 * @return
	 */
	WoPage<${entity.entityName}Dto> getPageData(String searchContent, String[] selectedIds, Long start, Long limit);
	
	/**
	 * 创建对象
	 * @param dto 
	 */
	void create(${entity.entityName}Dto dto);
	
	/**
	 * 更新对象
	 * @param dto
	 */
	void update(${entity.entityName}Dto dto);
	
	/**
	 * 根据ids值删除多个对象
	 * @param ids
	 */
	void delete($idType[] ids);
}
